package com.hue.gulimail.gulimailmember.config;

import com.hue.gulimail.gulimailmember.interceptor.LoginStatusInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author 姚凤桥
 * @Date 2022/1/6 9:32
 * @Description:
 */
@Configuration
public class WebConfig implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new LoginStatusInterceptor()).addPathPatterns("/**");
    }
}
